export const treeData = [
  {
    label: '成果与档案数据',
    children: [
      { label: '图像档案表', pathName: 'imageArchive', baseUrl: '/modules/archiveImage', idName: 'haitId', numName: '图表文档编号' },
      { label: '原始档案表', pathName: 'originalArchive', baseUrl: '/modules/archiveRawdata', idName: 'hartId', numName: '原始文档编号' },
      { label: '报告档案表', pathName: 'reportArchive', baseUrl: '/modules/archiveReport', idName: 'hartId', numName: '报告文档编号' },
      { label: '大数据文件表', pathName: 'bigDataFileTable', baseUrl: '/modules/hugeVolumeDatapath', idName: 'hhvdt', numName: '文档编号' },
      { label: '内部数据表', pathName: 'internalData', baseUrl: '/modules/internalData', idName: 'hidtId' },
      { label: '成果图件表', pathName: 'resultMap', baseUrl: '/modules/resultMap', idName: 'hrmtId', numName: '编号' },
      { label: '成果报告表', pathName: 'resultReport', baseUrl: '/modules/resultReport', idName: 'hrrtId', numName: '编号' }
    ],
  },
  {
    label: '地貌调查数据',
    children: [
      { label: '微地貌测量工程', pathName: 'geomorphySvyProject', baseUrl: '/modules/geomorphySvyProject', idName: 'hgsptId', numName: '测量工程编码' }
    ],
  },
  {
    label: '地球化学探测数据',
    children: [
      { label: '地球化学探测工程表', pathName: 'geochemicalProjectTable', baseUrl: '/modules/geochemicalProject', idName: 'hgptId', numName: '工程编号' },
      { label: '地球化学探测数据表', pathName: 'geocheSvyDataTable', baseUrl: '/modules/geocheSvyData', idName: 'hgsdtId', numName: '记录编号' }
    ],
  },
  {
    label: '地球物理探测数据',
    children: [
      { label: '地球物理探测工程表', pathName: 'geophySvyProjectTable', baseUrl: '/modules/geophySvyProject', idName: 'hgsptId', numName: '工程编号' },
      { label: '地球物理探测数据表', pathName: 'geophySvyDataTable', baseUrl: '/modules/geophySvyData', idName: 'hgsdtId', numName: '记录编号' }
    ],
  },
  {
    label: '地震波数据',
    children: [
      { label: '强震与地表破裂关联表', pathName: 'strongSeiHasFractBlt', baseUrl: '/modules/strongSeiHasFractblt', idName: 'hsshfId', numName: '记录编号' },
      { label: '台站与小震波形数据关联表', pathName: 'stationHasWaveforms', baseUrl: '/modules/stationHasWaveforms', idName: 'hshwId', numName: '记录编号' },
      { label: '小震波形数据记录表', pathName: 'waveformTable', baseUrl: '/modules/waveform', idName: 'hwtId', numName: '小震波形数据编号' }
    ],
  },
  {
    label: '地震危害性评价',
    children: [
      { label: '断层分段分析结果震级估计副表', pathName: 'magnitudeEstimateTable', baseUrl: '/modules/magnitudeEstimate', idName: 'hmetId', numField: 'faultId', numName: '断层编号' }, // 断层编号
      { label: '场地分类场地放大系数表', pathName: 'scaTable', baseUrl: '/modules/sca', idName: 'hstId', numField: 'targetRegionId', numName: '目标区编号' }, //目标区编号
      { label: '地脉动数据表', pathName: 'microtremorTable', baseUrl: '/modules/microtremor', idName: 'hmtId', numName: '数据编号' },
      { label: '地震动时程曲线反应谱曲线', pathName: 'srsTable', baseUrl: '/modules/srs', idName: 'hstId', numField: 'targetRegionId', numName: '目标区编号' }, //目标区编号
      { label: '地震危害性分析结果表', pathName: 'srAnalysisScenariosTbl', baseUrl: '/modules/sranalysisScenarios', idName: 'hsstId', numField: 'targetRegionId', numName: '目标区编号' },//目标区编号
      { label: '强地震动预测基础数据表', pathName: 'sspfTable', baseUrl: '/modules/sspf', idName: 'hstId', numName: '目标区编号' }
    ],
  },
  {
    label: '地质调查数据',
    children: [
      { label: '地质调查工程表', pathName: 'geologySvyProject', baseUrl: '/modules/geologySvyProject', idName: 'hgsptId', numName: '工程编号' },
      { label: '探槽古地震事件', pathName: 'paleoEQEvent', baseUrl: '/modules/paleoEqEvent', idName: 'hpeeId', numName: '记录编号' },
      { label: '地貌面与地表破裂带关联表', pathName: 'geomorPlyOnFractBlt', baseUrl: '/modules/geomorPlyOnFractBlt', idName: 'hgpofbId', numName: '记录编号' },
      { label: '地貌面与地质地貌点关联表', pathName: 'geomorPlyHasGeoSvyPt', baseUrl: '/modules/geomorPlyHasGeoSvyPt', idName: 'hgphgspId', numName: '记录编号' },
      { label: '地貌线与地质地貌点关联表', pathName: 'geomorLnHasGeoSvyPt', baseUrl: '/modules/geomorLnHasGeoSvyPt', idName: 'hglhgspId', numName: '记录编号' },
      { label: '断层段古地震事件与探槽关联表', pathName: 'paleoEQEvtHasTrench', baseUrl: '/modules/paleoEqevtHasTrench', idName: 'hpehtId', numName: '记录编号' },
      { label: '探槽与采样工程关联表', pathName: 'trenchBelongSamplePrj', baseUrl: '/modules/trenchBelongSamplePrj', idName: 'htbspId', numName: '记录编号' },
      { label: '地貌线与地表破裂带关联表', pathName: 'geomorLnOnFractBlt', baseUrl: '/modules/geomorLnOnFractBlt', idName: 'hglofbId', numName: '记录编号' },
      { label: '断层段古地震事件表', pathName: 'fPaleoEQEvtTable', baseUrl: '/modules/paleoEqevtTable', idName: 'hpetId', numName: '记录编号' }
    ],
  },
  {
    label: '火山调查数据',
    children: [
      { label: '火山地质调查填图数据表', pathName: 'volcanicDataTable', baseUrl: '/modules/volcanicData', idName: 'hvdtId', numName: '记录编号' },
      { label: '火山调查采样测试结果表', pathName: 'volcanicSampleResultTable', baseUrl: '/modules/volcanicSampleResult', idName: 'hvsrtId', numName: '记录编号' },
      { label: '火山调查观测点观测对象', pathName: 'volSvyPtObservationObject', baseUrl: '/modules/volSvyPtObservationObject', idName: 'hvspooId', numName: '记录编号' },
      { label: '火山化学测量工程表', pathName: 'volcanicSvyProjectTable', baseUrl: '/modules/volcanicSvyProject', idName: 'hvsptId', numName: '工程编号' }
    ],
  },
  {
    label: '区域调查',
    children: [
      { label: '调查区与面状资料关联表', pathName: 'invRgnHasMaterialTable', baseUrl: '/modules/invRgnHasMaterial', idName: 'hirhmtId', numName: '记录编号' },
      { label: '文献资料库', pathName: 'literatureDocumentTable', baseUrl: '/modules/literatureDocument', idName: 'hldtId', numName: '文献编号' }
    ],
  },
  {
    label: '野外采样数据',
    children: [
      { label: '采样工程表', pathName: 'sampleProjectTable', baseUrl: '/modules/sampleProject', idName: 'hsptId', numName: '工程编号' },
      { label: '样品测试结果表', pathName: 'sampleResultTable', baseUrl: '/modules/sampleResult', idName: 'hsrtId', numName: '记录编号' },
      { label: '样品数据表', pathName: 'sampleDataTable', baseUrl: '/modules/sampleData', idName: 'hsdtId', numName: '编号' }
    ],
  },
  {
    label: '钻探调查数据',
    children: [
      { label: '钻探工程表', pathName: 'drillProjectTable', baseUrl: '/modules/drillProject', idName: 'hdptId', numName: '工程编号' }
    ],
  }
]
// 成果分类检索
export const getBaseUrlByLabel = (label) => {
  let data = {}
  treeData.map(item => {
    let itemObj = item.children.find(itemChild => itemChild.label == label)
    if(itemObj) {
      data.baseUrl = itemObj.baseUrl
      data.name = itemObj.pathName
      data.idName = itemObj.idName
    }
  })
  return data
}